projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa9a253
)
(gdb): Pass default-directory to GDB via -cd option.
author
Richard M. Stallman
<rms@gnu.org>
Sat, 26 Oct 2002 22:37:04 +0000
(22:37 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sat, 26 Oct 2002 22:37:04 +0000
(22:37 +0000)
lisp/gud.el
patch
|
blob
|
history
diff --git
a/lisp/gud.el
b/lisp/gud.el
index c871a35f192551f9f7463ffb189bc14168a5c350..4ce4f97313404d8d0ac608fd6e29e31f2b2ddf3d 100644
(file)
--- a/
lisp/gud.el
+++ b/
lisp/gud.el
@@
-405,7
+405,9
@@
The directory containing FILE becomes the initial working directory
and source-file directory for your debugger."
(interactive (list (gud-query-cmdline 'gdb)))
- (gud-common-init command-line nil
+ (gud-common-init command-line
+ #'(lambda (file args)
+ `("-cd" ,(expand-file-name default-directory) . ,args))
'gud-gdb-marker-filter 'gud-gdb-find-file)
(set (make-local-variable 'gud-minor-mode) 'gdb)